package com.hnas.eCard.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.hnas.eCard.dao.CommoditMrchDao;
import com.hnas.eCard.orm.CommoditMrch;
import com.hnas.eCard.service.CommoditMrchService;

@Component("commoditMrchService")
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class CommoditMrchServiceImpl implements CommoditMrchService{

	@Autowired
	private CommoditMrchDao commoditMrchDao;
	
	@Override
	public CommoditMrch saveOrUpdate(CommoditMrch vo) throws Exception {
		return commoditMrchDao.saveOrUpdate(vo);
	}

	@Override
	public List<CommoditMrch> listCommoditMrch() {
		return commoditMrchDao.listCommoditMrch();
	}

	@Override
	public String findMrch(String orderNo) {
		return commoditMrchDao.findMrch(orderNo);
	}

}
